/**
 * form-data
 */
function login() {
    console.log("login");
    let formdata = new FormData();
    formdata.append("username", "username");
    formdata.append("password", "password");
    axios.post('/auth/login', formdata).then(response => {
        console.log(response);
    })
}

/**
 * application/json
 */
function login2() {
    console.log("login2");
    let data = { username: "username", password: "password" };
    axios.post('/auth/login2', data).then(response => {
        console.log(response);
    })
}